package com.jic.market.controller.rest;

import com.jic.common.base.vo.RestResult;
import com.jic.market.service.PromotionEndJobService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author yinhaijun
 * @date: 2020/6/30
 */
@RestController
@RequestMapping("/promotion/job")
@Api(tags = {"活动Job接口"})
@Slf4j
public class PromotionJobRestController {

    @Autowired
    private PromotionEndJobService promotionEndJobService;

    @ApiOperation(value = "活动结束同步积分")
    @GetMapping("score")
    public RestResult syncScore() {
        promotionEndJobService.syncSore();
        return null;
    }

}
